const express =require('express')
const route = express.Router()
//引入权限中间件
const isLoginMiddle = require("../middleware/isLoginMiddle")

//主要是为了书写一个接口，来使用我们封装好的权限中间件
route.get("/isLogin", isLoginMiddle, async (req, res) => {
    res.send({
      code: 10000,
      msg: "ok",
      data: null
    })
  })

module.exports = route